﻿<?php 
session_start();
if ($_session['user_guid'] == "" || $_session['user_guid'] == null)
{
//	header("Location:login.php");
}
    $index_top = "";
    $list_top = "";
	$dom = new DOMDocument();
	if (!$dom->load('xml/4cjdx7.xml'))
	{
		echo "load books.xml failed!<br>";
	}
	
	$domindex = $dom->getElementsByTagName('indeximgnum');
	$index_top = $domindex->item(0)->getAttribute('value');
	$domlist = $dom->getElementsByTagName('listimgnum');
	$list_top = $domlist->item(0)->getAttribute('value');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>无标题页</title>
    <link href="../Files/Css/formpost.css" rel="stylesheet" charset="utf-8" type="text/css" />
    <script type="text/javascript" src="../Files/Javascript/jquery.js"></script>
</head>
<body>
    <form id="form1" method="post" action="ModSiteImg.server.php">
    <div>
        <table width="75%" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3">
                    <h3>
                        网站图片管理</h3>
                    <hr />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 30%">
                    网站LOGO
                </td>
                <td align="left">
                <input type="file" id="file_logo" name="file_logo" />
                </td>
                <td align="center">
                <input type="submit" id="dosubmit1" value="上传" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 30%">
                    背景图片
                </td>
                <td align="left">
                <input type="file" id="file_bg" name="file_bg" />
                </td>
                <td align="center">
                <input type="submit" id="dosubmit2" value="上传" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 30%">
                   首页图片展示数量
                </td>
                <td align="left">
                <input type="text" id="index_top" name="index_top" value="<?php echo $index_top ?>" />
                </td>
                <td align="center">
                <input type="submit" id="dosubmit2" value="修改" />
                </td>
            </tr>
            <tr>
                <td align="center" style="width: 30%">
                   产品展示图片数量
                </td>
                <td align="left">
                <input type="text" id="list_top" name="list_top" value="<?php echo $list_top ?>" />
                </td>
                <td align="center">
                <input type="submit" id="dosubmit2" value="修改" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
